v469 — Fleet Map Manual Position Update Persistence Contract and Audit Trail Planning

Baseline

Current baseline before build: v468.

Decision

Reviewed v468 Fleet Map driver check-in workflow and manual position update readiness and proceeded with v469 Fleet Map manual position update persistence contract and audit trail planning before connecting real GPS/ELD providers, changing payment collection, broker distribution limits, owned portal rules, or internal load-board access.

What changed

  • Kept `/fleet-map` as the dedicated CruiseMapper-style workspace truck tracking surface.
  • Preserved the core marker rule:
  • - green truck marker = live driver-app GPS; - blue truck marker = estimated route-progress position.
  • Added authenticated workspace API:
  • - `/api/fleet-map/manual-position-updates`.
  • Added manual position update persistence contract data to the Fleet Map snapshot:
  • - endpoint; - method; - event name; - required payload fields; - audit trail fields; - guardrails; - marker-effect language; - future schema note.
  • Added manual position update persistence readiness to each Fleet Map truck position:
  • - recordable status; - recordable label; - payload preview; - audit trail fields; - submit button label; - marker-effect guardrail.
  • Added selected-truck manual position audit form for:
  • - confirmed location; - movement status; - updated ETA; - check-in time; - update source; - dispatcher note.
  • Added recent manual position update audit trail panel to `/fleet-map`.
  • Added DomainEvent-backed audit recording using default event name `FLEET_MAP_MANUAL_POSITION_UPDATE_RECORDED`.
  • Added `.env.example` flags for manual position audit recording.
  • Updated Fleet Map architecture documentation, HTML mirror, active handoff, changelog, and architecture index.
  • What this does not do

  • Does not move the truck marker yet.
  • Does not relabel a blue estimated marker as green live GPS.
  • Does not connect driver-app GPS.
  • Does not connect ELD or telematics providers.
  • Does not send driver messages.
  • Does not call Google Routes API or Google Geocoding API.
  • Does not change payment collection, broker distribution limits, owned portal rules, or internal load-board access.
  • Does not change Prisma schema.
  • Validation

  • `npm run dispatchspot:preflight` passed in the sandbox.
  • Targeted TypeScript transpile parser checks passed for changed Fleet Map files.
  • Full `npm run build` could not run in the sandbox because project dependencies are not installed.
  • Next recommended check-in

    Current baseline on server is v469
    

    review v469 Fleet Map manual position update persistence contract and audit trail planning, then decide whether to proceed with v470 Fleet Map marker refresh review and dispatcher-confirmed position state model or first harden manual position audit contract behavior before connecting real GPS/ELD providers, changing payment collection, broker distribution limits, owned portal rules, or internal load-board access